home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Avalon 6
/
Avalon_06_1995_Avalon_Side_A.d64
/
forecaster vii
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
4KB
|
134 lines
10 poke53280,0:poke 53281,0
20 rem ********************
30 rem * commodore 64/128 *
40 rem *weather forecaster*
50 rem ********************
60 print"[147]"
70 print""
80 printtab(9)"weather forecaster vii"
90 printtab(9)" by john scott kula"
100 printtab(11)" 01/23/87"
101 print""
102 printtab(6)"right 83.64% of the time !!!"
110 for t=1 to 7000:next
120 print"[147]"
130 print"main menu"
140 print"1. forecast weather"
150 print"2. quit"
160 get a$:if a$="" then 160
170 if val(a$)>2orval(a$)<1 then 160
180 if a$="1" then 210
190 if a$="2" then new
200 new
210 rem * forcasting *
220 print"[147]"
230 printtab(15)"forecasting"
240 print""
250 print"please enter:"
260 input"temperature:";te
270 print"is the temperature:"
280 print"1) steady"
290 print"2) slow rise"
300 print"3) rapid rise"
310 print"4) slow fall"
320 print"5) rapid fall"
330 get tm$:tm=val(tm$):if tm<6 and tm>0 then 350
340 goto 330
350 print"[147]"
360 printtab(15)"forecasting"
370 print""
380 print"please enter:"
390 input"barometric pressure:";bp
400 print"is the barometer:"
410 print"1) steady"
420 print"2) slow rise"
430 print"3) rapid rise"
440 print"4) slow fall"
450 print"5) rapid fall"
451 print"a rapid change is any change in"
452 print"excess of 0.06 per hour"
460 get bm$:bm=val(bm$):if bm<6 and bm>0 then 480
470 goto 460
480 print"[147]"
490 printtab(15)"forecasting"
500 print""
510 print"please enter:"
511 print"as n,ne,e,se,s,sw,w,nw"
512 print
520 input"wind direction:";wd$
530 if wd$="n" then w=1:goto 620
540 if wd$="ne"then w=2:goto 620
550 if wd$="e" then w=3:goto 620
560 if wd$="se"then w=4:goto 620
570 if wd$="s" then w=5:goto 620
580 if wd$="sw"then w=6:goto 620
590 if wd$="w" then w=7:goto 620
600 if wd$="nw"then w=8:goto 620
610 goto 480
620 rem * search *
630 if bp>=30.29 and bm=4 and w>=6 and w<=8 then 1000
640 if bp>=30.24 and bm=1 and w>=6 and w<=8 then 1010
650 if bp>=30.19 and bm=1 and w>=6 and w<=8 then 1020
660 if bp>=30.19 and bm=3 and w>=6 and w<=8 then 1030
670 if bp>=30.19 and bm=4 and w>=6 and w<=8 then 1040
680 if bp>=30.17 and bm=5 and w>=6 and w<=8 then 1050
690 if bp>=30.17 and bm=4 and (w=4orw=5) then 1060
700 if bp>=30.15 and bm=5 and (w=4orw=5)then 1070
710 if bp>=30.15 and bm=4 and w>=2 and w<=4 then 1080
720 if bp>=30.13 and bm=5 and w>=2 and w<=4 then 1090
730 if bp>=30.13 and bm=4 and(w=2orw=3) then 1100
740 if bp>=30.11 and bm=5 and(w=2orw=3) then 1110
750 if bp>=29.89 and bm=5 and w>=1 and w<=3 then 1120
760 if bp>=29.85 and bm=5 and w>=3 and w<=5 then 1130
770 if bp<=30.10 and bp=3 then 1140
780 if bp<=30.10 and bm=4 and w>=2 and w<=4 then 1150
790 if bp<=30.10 and bm=5 and w>=2 and w<=4 then 1160
800 if bp<=30.00 and bm=2 and(w=5orw=6) then 1170
1000 print"fair and warmer for the next 48 hours.":goto 9000
1010 print"continued fair with little or no change in temperature.":goto 9000
1020 print"fair, little change in temp. for the next 24 to 48 hours.":goto 9000
1030 if tm=5 or tm=4 and te<40then 1032
1031 print"fair today, rainy and warmer in 48 hours.":goto 9000
1032 print"fair today, possibility of snow in 48 hours.":goto 9000
1040 if tm=5 or tm=4 and te<40then1042
1041 print"warmer, rain in 24 to 36 hours.":goto 9000
1042 print"colder, possibility of snow in 24 to 36 hours.":goto 9000
1050 if tm=5 or tm=4 and te<40then1052
1051 print"warmer, rain in 18 to 24 hours.":goto 9000
1052 print"colder, possibility of snow in 18 to 24 hours.":goto 9000
1060 if tm=5 or tm=4 and te<40then1062
1061 print"posibility of snow in 2 to 24 hours.":goto 9000
1062 print"windy[160] posibility of snow in 12 to 24 hours.":goto 9000
1070 if tm=5 or tm=4 and te<40then1072
1071 print"windy, rain in 12 to 24 hours.":goto 9000
1072 print"windy[160] posibility of snow in 12 to 24 hours.":goto 9000
1080 if tm=5 or tm=4 and te<40then1082
1081 print"rain in 12 to 18 hours.":goto 9000
1082 print"posibility of snow in 12 to 18 hours.":goto 9000
1090 if tm=5 or tm=4 and te<40then1092
1091 print"windy and rain in 12 hours.":goto 9000
1092 print"windy and posibility of snow in 12 hours.":goto 9000
1100 print"in summer with light winds:"
1101 print"rain may not fall for days."
1102 print"in winter: rain in 24 hours"
1103 goto 9000
1110 print"in summer: rain likely in 12 to 24 hrs."
1111 print"in winter: rain or snow with increasing winds.":goto 9000
1120 if tm=4 or tm=5 and te<40 then1122
1121 print"heavy rain.":goto 9000
1122 print"snow followed by a cold wave.":goto 9000
1130 if tm=4 or tm=5 and te<40 then1132
1131 print"severe storm warning! windy & rainy[160] clearing in 24 hrs.":goto 9000
1132 print"severe storm warning! windy & snowy[160] clearing in 24 hrs.":goto 9000
1140 print"clearing and colder.":goto9000
1150 if tm=4 or tm=5 and te<40 then1152
1151 print"rain for the next day or two.":goto 9000
1152 print"possibility of snow for the next day or two.":goto 9000
1160 if tm=4 or tm=5 and te<35 then1162
1161 print"rain & windy, followed by clearing and cool temps. in 24 hrs.":goto9000
1162 print"snow & windy, followed by clearing and cool temps. in 24 hrs.":goto9000
1170 print"clearing in a few hours, fair for the next several days.":goto9000
9000 printtab(8)"hit any key for main menu"
9001 get a$:if a$="" then 9001
9002 goto 120